package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 大掌柜  日常流水记录对象 dzg_running_water
 *
 * @author ruoyi
 * @date 2024-05-07
 */
public class DzgRunningWater extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 支付名头 */
    @Excel(name = "支付名头")
    private String name;

    /**金额*/
    @Excel(name = "金额")
    private Double amount;

    /** 1--现金
2--手机微信
3--银行卡
4--系统微信
5--系统支付宝
6--公户 */
    @Excel(name = "1--现金  2--手机微信 3--银行卡 4--系统微信 5--系统支付宝 6--公户")
    private Integer type;

    /** 操作日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 1--支出  2--收入 */
    @Excel(name = "1--支出  2--收入")
    private Long comeOut;


    /** 添加人 */
    @Excel(name = "添加人")
    private String createUser;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateUser;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setComeOut(Long comeOut)
    {
        this.comeOut = comeOut;
    }

    public Long getComeOut()
    {
        return comeOut;
    }
    public void setCreateUser(String createUser)
    {
        this.createUser = createUser;
    }

    public String getCreateUser()
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser)
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser()
    {
        return updateUser;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("time", getTime())
            .append("comeOut", getComeOut())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .append("amount", getAmount())
            .toString();
    }
}
